package com.dw.entity;

import com.dw.dao.ProjectDao;
import com.dw.util.DateUtil;

public class ContactNote {
	private String id;
	private String content;
	private String createtime;
	private String contacterId;
	private String projectId;
	private Project p;
	private String tiptime;
	
	public String getContacterId() {
		return contacterId;
	}
	public void setContacterId(String contacterId) {
		this.contacterId = contacterId;
	}
	public String getProjectId() {
		return projectId;
	}
	public void setProjectId(String projectId) {
		this.projectId = projectId;
		setP(new ProjectDao().findByID(projectId));
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
		setTiptime(createtime);
	}
	private void setP(Project p) {
		this.p = p;
	}
	public Project getP() {
		return p;
	}
	
	private void setTiptime(String tiptime) {
		this.tiptime = DateUtil.getNiceDate(tiptime);
	}
	public String getTiptime() {
		return tiptime;
	}
}
